package 行为型设计模式.责任链模式.demo;

/**具体处理者3
 * @Author lf
 * @Date 3/24/2024
 */
public class ConcreteHandler3 extends Handler{
    @Override
    public void handleRequest(int request) {
        if (request >= 20 && request < 30) {
            System.out.println(this.getClass().getSimpleName() + " 处理了请求 " + request);
        } else if (next != null) {
            next.handleRequest(request);
        }
    }
}
